def main():
    html = file('toutiao.html', 'w+')
    html.write('<html><body>')
    for i in range(0, 1000):
        num = ''
        if 0 < i < 10:
            num += '00'

        if 10 < i < 100:
            num += '0'

        num += str(i)
        img = '"http://goddess-pic.b0.upaiyun.com/album/638/BT5T9' + num + '.jpg"'
        html.write('<img src=' + img + '/>')

    html.write('</body></html>')



if __name__ == '__main__':
    main()
